<?php


namespace app\admin\order\validate;


use app\common\validate\BaseValidate;

class OrderRefundValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',

        'refunded_price' => 'require',
        'unrefund_reason' => 'require',
    ];

    protected $field = [
        'id' => 'ID',
        'refunded_price' => '退款金额',
        'unrefund_reason' => '拒绝原因',
    ];
    protected $scene = [
        "id" => [
            'id',
        ],
        "agree" => [
            'id',
            'refunded_price',
        ],
        "refuse" => [
            'id',
            'unrefund_reason',
        ],
    ];
}